import { get, post } from '@/utils/request'
const BASE_URL = window.baseUrl.ticket
const DISPOSE_URL = window.baseUrl.dispose

/** 查询待办列表  */
export function getTasksList(query) {
  return post(BASE_URL + '/common/order/query', query)
}

/** 待办列表左侧树1 */
export function getTasksTree1(query) {
  return post(BASE_URL + '/common/order/countByServiceId', query)
}

/** 待办列表左侧树2 */
export function getTasksTree2(query) {
  return post(BASE_URL + '/common/order/countCatalogue', query)
}
/** 待办列表左侧树2 */
export function getTasksTree3(query) {
  return post(BASE_URL + '/common/order/countByTimeout', query)
}

/** 查询发起工单表单 */
export function getProcessForm(query) {
  return get(BASE_URL + '/flow/getFormVariablesByServiceId?serviceId=' + query)
}

/** 查询后续流程表单 */
// export function getExecuteForm(query) {
//   return get(BASE_URL + '/common/order/detail?serialNumber=' + query)
// }
export function getExecuteForm(query) {
  return get(DISPOSE_URL + '/aggrIncident/events/disposal/orderDetail?serialNumber=' + query)
}
